<template>
    <div class="loading">
        <img src="../assets/images/loadingimg.gif" alt="">
        <div class="loadingText">{{loadingText}}</div>
    </div>
</template>

<script>
//快速在组件当中操作vuex
import {mapGetters,mapMutations,mapState,mapActions} from "vuex";
export default {
    name:"loading",
    computed:{
        ...mapGetters(["loadingText"])
    }
}
</script>

<style lang="scss" scoped>
@import '../assets/css/comm.scss';
.loading{
    width: 1.4rem;
    height: 1.4rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: .1rem;
    @include flexbox(column);
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    z-index: 9999;  /*防止其它组件在定位的时候，反它盖住了*/
    >img{
        width: .6rem;
        height: .6rem;
    }
    .loadingText{
        color:#000000;
        font-size: .24rem;
        margin-top: 10px;
    }
}
</style>
